home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / sys / Replace_37_2.readme < prev    next >
Text File  |  1995-07-02  |  3KB  |  72 lines

  1. Short:    Simple search/replace thing. With source.
  2. Author:   kas@mink.ping.dk (Klaus Alexander Seistrup)
  3. Uploader: kas@mink.ping.dk (Klaus Alexander Seistrup)
  4. Type:     util/cli
  5.  
  6.  
  7.     SYNOPSIS
  8.     [-iinFile] [-ooutFile] <-ssearchStr> <-rreplaceStr> [-c] [-v]
  9.  
  10.  
  11.     DESCRIPTION
  12.     Very simple search/replace program. Replaces searchStr with replaceStr
  13.     in inFile.
  14.  
  15.  
  16.     OPTIONS
  17.     -i    Optional input file (default: stdin)
  18.     -o    Optional output file (default: stdout)
  19.     -s    Mandatory search string
  20.     -r    Mandatory replace string
  21.     -c    Use case-sensitive search routine (default: case-insensitive)
  22.     -v    Verbose (report number of successful search/replace)
  23.  
  24.     If the name of the input and the output files is the same, or if the
  25.     name of the output file is "-", then inFile will be renamed as inFile~
  26.     before conversion (note: any existing inFile~ will be deleted!) to
  27.     inFile.
  28.  
  29.     Both searchStr and replaceStr can be given as strings or ASCII values.
  30.     ASCII values can be given as octal, decimal or hexadecimal, prepended
  31.     with a backslash. E.g., 'A':
  32.  
  33.         (OCT) \0101
  34.         (DEC) \65
  35.         (HEX) \0x41
  36.  
  37.  
  38. ······: Klaus :·······································: kas@mink.ping.dk :······
  39. ··············: Magnetic Ink :··················································
  40. ····································: Soli Deo Gloria :·························
  41.  
  42. -- 
  43.  
  44.     »Let us hear the conclusion of the whole matter: Fear God, and keep his
  45.      commandments, for this is the whole duty of man.«
  46.                                                        (Ecclesiastes 12:13)
  47.  
  48. 
  49.  
  50.  
  51. ============================= Archive contents =============================
  52.  
  53. Original  Packed Ratio    Date     Time    Name
  54. -------- ------- ----- --------- --------  -------------
  55.     1173     334 71.5% 04-May-95 18:43:18 +Archive.contents
  56.    11668    7507 35.6% 04-May-95 18:08:20 +Replace
  57.     2160    1036 52.0% 04-May-95 18:31:28 +Replace.man
  58.       85      78  8.2% 04-May-95 18:36:16 +BufSiz.c
  59.      422     288 31.7% 04-May-95 18:36:58 +DMakeFile
  60.      552     339 38.5% 25-Jan-95 19:35:24 +DOSLib.a
  61.       38      38  0.0% 04-Dec-94 11:27:36 +MkProtos
  62.     6661    2301 65.4% 04-May-95 18:04:32 +Replace.c
  63.      989     394 60.1% 30-Apr-95 14:13:44 +Replace.h
  64.      557     228 59.0% 30-Apr-95 14:04:46 +Replace_protos.h
  65.        2       2  0.0% 04-May-95 18:08:20 +Replace_rev.beta
  66.      425     213 49.8% 04-May-95 18:08:20 +Replace_rev.h
  67.        1       1  0.0% 04-May-95 18:08:20 +Replace_rev.rev
  68.      405     212 47.6% 04-May-95 18:08:10 +Replace_ver.h
  69.      576     343 40.4% 18-Nov-94 01:26:56 +UtilityLib.a
  70. -------- ------- ----- --------- --------
  71.    25714   13314 48.2% 07-May-95 15:43:18   15 files
  72.